package com.zgh.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("bbs_collection")
public class BbsCollection implements Serializable {
    private static final long serialVersionUID = 18L;
    @TableId(value = "id", type = IdType.AUTO)
    private int id;
    @TableField("userId")
    private int userId;
    @TableField("bbsId")
    private int bbsId;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Bbs bbs;
    @TableField("collectionTime")
    private String collectionTime;
}

